//
//  YXTLanguageManager.h
//  AFNetworking
//
//  Created by david on 2018/11/7.
//

#import <Foundation/Foundation.h>

//适配原先产线key，不改动代码
#define DX_I18N_STR(key)    [YXTLanguageManager yxt_localizedStringForKey:key]

//添加注释的宏，方便阅读，功能同上
#define DX_I18N_STR_Note(key,noteStr)    [YXTLanguageManager yxt_localizedStringForKey:key note:noteStr]

//时刻
#define MomentKey(key) DX_I18N_STR(key)

//社区
#define BBSKey(key) DX_I18N_STR(key)

@interface YXTLanguageManager : NSObject
 
/**
 设置APP的语言环境，由产线调用；
 
 @param language @"en":英文；@"zh-Hans":简体中文；@"zh-Hant-TW":繁体中文；@"":跟随系统；
 */
+ (void)yxt_setAppLanguage:(NSString *)language;

/**
 获取APP当前的语言环境
 
 @return @"en":英文；@"zh-Hans":简体中文；@"zh-Hant-TW":繁体中文；@"":跟随系统；
 */
+ (NSString *)yxt_getAppLanguage;


/**
 获取key对应的国际化字符串
 
 @param key key
 @return value
 */
+ (NSString *)yxt_localizedStringForKey:(NSString *)key;


/**
 获取key对应的国际化字符串

 @param key key
 @param noteString 注释，给自己看的
 @return value
 */
+ (NSString *)yxt_localizedStringForKey:(NSString *)key note:(NSString *)noteString;

@end
